-- GENERATED SPELL FOR [Woodpaw Reaver] --


function spell0_5255(pUnit, Event) --@Berserker Stance,Self--
pUnit:FullCastSpellOnTarget(7366,pUnit)
pUnit:RegisterEvent('Sorts_5255', 565, 1)
end

function spell1_5255(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(7369,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5255', 623, 1)
end

function Sorts_5255(pUnit, Event)
local choix_sorts_5255 = math.random(0, 1)
if choix_sorts_5255 == 0 then
pUnit:RegisterEvent('spell0_5255', 1, 1)
end
if choix_sorts_5255 == 1 then
pUnit:RegisterEvent('spell1_5255', 1, 1)
end
end

function mob5255_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5255', math.random(1500, 3000), 1)
end

function mob5255_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5255_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5255_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5255, 1, 'mob5255_Action')
RegisterUnitEvent(5255, 2, 'mob5255_Leave')
RegisterUnitEvent(5255, 3, 'mob5255_Kill')
RegisterUnitEvent(5255, 4, 'mob5255_Die')
